/*
 * @Author: zhoulei0232
 * @Date: 2023-01-06 22:51:15
 * @LastEditTime: 2023-01-07 11:00:45
 * @LastEditors: zhoulei0232
 * @Description:
 */
import request from "@/utils/request";

// 查询列表
export function listRules(query) {
  return request({
    url: "/api/rules/list",
    method: "get",
    params: query,
  });
}

// 编辑
export function updateRules(data) {
  return request({
    url: "/api/rules/update",
    method: "post",
    data: data,
  });
}
// 查询详情
export function detailsRules(data) {
  return request({
    url: "/api/rules/details",
    method: "post",
    data: data,
  });
}

// 查询列表
export function listMember(query) {
  return request({
    url: "/api/member/listAll",
    method: "get",
    params: query,
  });
}
// 新增
export function addMember(data) {
  return request({
    url: "/api/member/add",
    method: "post",
    data: data,
  });
}
// 编辑
export function updateMember(data) {
  return request({
    url: "/api/member/update",
    method: "post",
    data: data,
  });
}
// 查询详情
export function delMember(data) {
  return request({
    url: "/api/member/del",
    method: "post",
    data: data,
  });
}
